#include "../../include/Compare.h"

Compare::Compare(std::string _stuId,std::string _carId) {
    IdManager* idManager = IdManager::getIdManager();
    this->id = idManager->createId("COMPARE");
    this->stuId = _stuId;
    this->carId = _carId;
}
Compare::Compare(std::string _id,std::string _stuId,std::string _carId) {
    IdManager* idManager = IdManager::getIdManager();
    idManager->addId("COMPARE",_id);
    this->id = _id;
    this->stuId = _stuId;
    this->carId = _carId;
}
std::string Compare::getId() {
    return this->id;
}
std::string Compare::getStuId() {
    return this->stuId;
}
std::string Compare::getCarId() {
    return this->carId;
}
std::string Compare::toString() {
    std::string str = "";
    str += this->id + " ";
    str += this->stuId + " ";
    str += this->carId + " ";
    return str;
}